package com.wgs.onomastici;

import java.util.List;

public class Contatto implements Comparable<Contatto> {

	private Integer id;
	
	private String name;
	
	private List<String> phoneNumbers;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getPhoneNumbers() {
		return phoneNumbers;
	}

	public void setPhoneNumbers(List<String> phoneNumbers) {
		this.phoneNumbers = phoneNumbers;
	}

	@Override
	public int compareTo(Contatto another) {
		return name.compareTo(another.name);
	}
	
	
}
